<script>
	import UsersModel from '@/db/UsersModel';
	export default {
		onLaunch: function() {
			console.log('App Launch')
			//安装第一次启动检测 初始化数据
			if (!uni.getStorageSync('isFirstLaunch')) {
				uni.setStorageSync('isFirstLaunch', true);
				let user = new UsersModel();
				//初始化数据库
				user.init()
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>
 
<style lang="scss">
	:root {
		--color: #1860e9;
		--bg: #e6eaf5;
	}

	page {
		background-color: #dce0e9;
		font-size: 16px;
	}
</style>